package com.simtop;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class test02 {

    public static void main(String[] args) {
String AS ="{\"msg\":\"未命中视频黑库\",\"conclusion\":\"合规\",\"log_id\":16638105537212064,\"frames\":[{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/0?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2Ff9613d9b88d4aa77ebbaea26fe88ae62360006307dd804c4ec73b1e724d86e65\",\"frameTimeStamp\":0,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/8?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2Ffaa79b3d28661a654859475afab34f650e99b691aef4a5ce950ccfc6dd92658a\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/1?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2F1839abbe871ad89af46caee3794661f77d124b03f426be36d022aa44c412d7e3\",\"frameTimeStamp\":2000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/9?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2Fecd16cb28ed86b0c6155634221ca8e0e1c3541f41a1787cc8f6e95abdc85f2d4\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/2?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2Fa4b761062e101d78f96bb8e0b950bc9cd7a7a45380df2ebd6efb69c3959b5bb3\",\"frameTimeStamp\":4000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/10?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2F1565d4eecb83e31af65a959f05909528a6a4bed6bf016f5d967ce17ad33c0046\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/3?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2F8569ec9c8a865df7c4b928e7f764f340ecb57ff47fee638785ba11df99db8395\",\"frameTimeStamp\":6000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/11?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2F7f0f8f135ae6c9e7dc284d604f91572cb85ed6bf72f629b3d95f919a07cd34ac\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/4?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2F8ffbe4f21ce9df2e7053496173572066b49c95a3f1d90ae833d02dbc621822e2\",\"frameTimeStamp\":8000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/12?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2F0f2e7f63ad51b4da94e0bf6c329a89a3f47f46b3aff84711348a86c717daa29d\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/5?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A55Z%2F2592000%2F%2F122300cc5af2e490d0b24e000319cf36f5a1de2bbede45a78c21952888797bed\",\"frameTimeStamp\":10000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/13?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2Fb198d5a78ec2416fb28f5e98e1d7ca42ed0a3e282494a9ee453a5b49b52780a9\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/6?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2F8ecbb3ad31f63ff45db1b890f8d27fb81f0f4c6ab8bbefdcc5968f266aa861f8\",\"frameTimeStamp\":12000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/14?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2Fd11c8ca2e0e4169f638a8aba40b4b0e091f6ea3ea5a64435dd65df1a96162ad1\"},{\"conclusion\":\"合规\",\"frameUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/7?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2F82c7f944433dfc1bd4e44e03c992edb2c8961657a85ba982cdfc66c62a762890\",\"frameTimeStamp\":14000,\"conclusionType\":1,\"frameThumbnailUrl\":\"http://su.bcebos.com/ai-solution-video-hd/videoCensor/27553883/2022-09-22-09/16638105537212064/15?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2022-09-22T01%3A35%3A56Z%2F2592000%2F%2Fe2549a7f326f1a73ef219c13cc0171dee72f882b181080e9745a87cfbba795e0\"}],\"isHitMd5\":false,\"conclusionType\":1}";
        JSONObject jsonObject = JSONObject.parseObject(AS);
        String conclusion = jsonObject.getString("conclusion");
        System.out.println(conclusion);
        String conclusionTypeGroupInfos = jsonObject.getString("conclusionTypeGroupInfos");
        System.out.println(conclusionTypeGroupInfos);
        Map<Object, Object> objectObjectMap = new HashMap<>();
        objectObjectMap.put("conclusion", conclusion);
        objectObjectMap.put("data" , conclusionTypeGroupInfos);

        Object o = JSONObject.toJSON(objectObjectMap);
        System.out.println(o);



    }
}
